import HttpHandler from "@/handler/HttpHandler";

export default class MaPackApi {
    constructor() {
        this.http = new HttpHandler();
    }

    // 获取列表
    queryListPage(data) {
        let url = '/tie-demo/maPack/queryListPage';
        return this.http.get(url, data);
    }
    // 新增
    add(data) {
        let url = '/tie-demo/maPack/add';
        return this.http.post(url, data);
    }
    // 修改
    update(data) {
        let url = '/tie-demo/maPack/update';
        return this.http.post(url, data);
    }
    // 详情
    detail(data) {
        let url = '/tie-demo/maPack/queryDetail';
        return this.http.get(url, data);
    }
    // 删除
    delete(data) {
        let url = '/tie-demo/maPack/delete';
        return this.http.post(url, data);
    }
    // 批量启用
    batchStartUsing(data) {
        let url = '/tie-demo/maPack/batchStartUsing';
        return this.http.post(url, data);
    }
    // 批量禁用
    batchBan(data) {
        let url = '/tie-demo/maPack/batchBan';
        return this.http.post(url, data);
    }
    // 批量删除
    batchDelete(data) {
        let url = '/tie-demo/maPack/batchDelete';
        return this.http.post(url, data);
    }
}
